package com.aquan.spring.sample.circul.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ServiceB {

    @Autowired
    private ServiceC serviceC;

    @Transactional
    public void sayHelloFromB() {
        System.out.println(" --- say hello from B --- ");
    }

    public ServiceC getServiceC() {
        return serviceC;
    }

    public void setServiceC(ServiceC serviceC) {
        this.serviceC = serviceC;
    }
}
